<?php
if(isset($_POST['save_gadgettech'])) {
	
$res = "update bookmark_settings set `facebook` = '".$_POST['facebook']."', `twitter` = '".$_POST['twitter']."', `qspace` = '".$_POST['qspace']."',`myspace` = '".$_POST['myspace']."'";

	mysql_query($res) or die(mysql_error());
}

$query = mysql_query("select * from bookmark_settings") or die(mysql_error());

$res = mysql_fetch_array($query);


?>
<table border="0" width="100%" align="center">
<tr>
	<td width="46%" align="left"><span style="color:#1B78B7; font-size:14px; font-weight:bold">
    Add Page</span>&nbsp; 
	<!--<input type="button" name="addnew" value="Add New" onclick="return show();" />-->
	</td>
	<td width="40%" align="right" class="font12">
    <a href="index.php" class="font12">Manage Pages</a></td>
</tr>
<tr>
	<td background="images/topline.gif" colspan="3" height="11"></td>
</tr>    
</table>
<form name="formPage" method="post" >
<table width="99%" align="center" border="0"  class="list">
<tr>
	<td align="right" width="250">Facebook URL*</td>
    <td align="left"><input class="text" style="width:300px" name="facebook"  id="facebook" type="text" value="<?php echo $res['facebook'];?>"/></td>
</tr>
<tr>
	<td align="right" width="250">Twitter URL*</td>
    <td align="left"><input class="text" style="width:300px" name="twitter"  id="twitter" type="text" value="<?php echo $res['twitter'];?>"/></td>
</tr>
<tr>
	<td align="right" width="250">Qspace URL*</td>
    <td align="left"><input class="text" style="width:300px" name="qspace"  id="qspace" type="text" value="<?php echo $res['qspace'];?>"/></td>
</tr>
<tr>
	<td align="right" width="250">myspace URL*</td>
    <td align="left"><input class="text" style="width:300px" name="myspace"  id="myspace" type="text" value="<?php echo $res['myspace'];?>"/></td>
</tr>
<tr>
	<td align="right" width="150"></td>
    <td align="left">
    <input type="submit" value="Submit" name="save_gadgettech">&nbsp;<input type="reset" name="reset" value="Clear" /></td>
</tr>
</table>
</form>